﻿using Abp.Application.Services.Dto;
using Abp.AutoMapper;
using KelonProud.Extensions;
using KelonProud.TableManagement.Domain;

namespace KelonProud.TableManagement.Dtos.DataBase
{
    [AutoMap(typeof(KelonDataBase))]
   public  class DataBaseInput:EntityDto
    {
        public virtual string Name { get; set; }

        public virtual DataBaseType Type { get; set; }

        public virtual string ConnectStr { get; set; }

        public virtual string ConfigJson { get; set; }

        public string ConfigIp { get; set; }

        public string ConfigPort { get; set; }

        public string ConfigName { get; set; }

        public string ConfigUser { get; set; }

        public string ConfigPassWord { get; set; }
    }

    public class DataBaseOutput : DataBaseInput
    {
        public string TypeName => Type.GetDisplayName();
    }

}
